﻿@model sBlog.Net.Domain.Entities.PostEntity
<tr>
    <td>
        @{
            var type = Model.EntryType == 1 ? "Post" : "Page";
        }
        <b>@Html.ActionLink(Model.PostTitle, "Edit", type, new { postID = Model.PostID }, new { @class = "mainLink" })</b><br />
        <br />
        @Html.Partial("PostOptions", Model)
    </td>
    <td>
        @Model.OwnerUserName
        <br />
        @Model.UserEmailAddress
        <br />
        <a href="@Model.FacebookUrl" target="_blank">@Model.FacebookUrl</a>
    </td>
    <td>
        @Html.Partial("PostCategories", Model.Categories)
    </td>
    <td>
        @Html.Partial("PostTags", Model.Tags)
    </td>
    <td>
        @{
            var datePublic = Model.PublicDate;
        }
        @datePublic.ToLongDateString()
    </td>
    <td>
        @{
            var date = Model.PostAddedDate;
        }
        @date.ToLongDateString()
    </td>
</tr>
